package com.egao.common.module.counsel.result;

import com.egao.common.module.counsel.entity.Counsel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 预约咨询周日历列头
 * @author lym
 * @date 2022/1/24 17:48
 */
@Data
public class CounselCalendarColumns {

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("列标识")
    private String dataIndex;

    @ApiModelProperty("日期")
    private Date date;

    @ApiModelProperty("周几")
    private String week;

    @ApiModelProperty("日期简写")
    private String dateStr;

    @ApiModelProperty("日期对应的预约咨询记录")
    private List<Counsel> counselList;

    public CounselCalendarColumns() {}

    public CounselCalendarColumns(String title, String dataIndex) {
        this.title = title;
        this.dataIndex = dataIndex;
    }

    public CounselCalendarColumns(String dateStr, String week, String dataIndex, Date date) {
        this.dateStr = dateStr;
        this.week = week;
        this.title = week + "/" + dateStr;
        this.dataIndex = dataIndex;
        this.date = date;
    }
}
